<name>Dorylass</name>
<profession>Expert Teacher of Spear</profession>
<faction>Centaurs</faction>
<dialogue>
  <greeting>
    <reply>
      <if>
        <reputation>70</reputation>
      </if>
      <text>Hi! Did you see the butterflies outside? They come here often. I like the turquoise ones best.</text>
      <return>main</return>
    </reply>
    <reply>
      <text>Be careful with that, [race], the tip is sharp.</text>
      <return>main</return>
    </reply>
  </greeting>
  <main>
    <option>
      <text>What are the advantages of Spears?</text>
      <npc>
        <reply>
          <text>It may not be the fastest weapon, but a properly wielded spear, halberd or trident can as easily penetrate a Basilisk's hide as a Wolf's. Later on you may learn to use them one-handed, but don't forget that with two hands you'll always do more damage.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>I would like to become a Spear Expert.</text>
      <npc>
        <reply>
          <if><grandmaster>Spear</grandmaster></if>
          <text>You already are a grandmaster!!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><master>Spear</master></if>
          <text>You already are a master!</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expert>Spear</expert></if>
          <text>You already are an expert, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><skill>!Spear</skill></if>
          <text>You do not know the skill, [name].</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><expertlevel>!Spear</expertlevel></if>
          <text>You are not good enough yet.</text>
          <return>main</return> 
        </reply>
        <reply>
          <if><gold>!1000</gold></if>
          <text>You cannot afford the fee.</text>
          <return>main</return> 
        </reply>
        <reply>
          <text>Congratulations, [name]!</text>
          <return>main</return> 
          <script>
            <gold>-1000</gold>
            <expert>Spear</expert>
            <log>[name] Spear Expert</log>
          </script>
        </reply>
      </npc>
    </option>
    <option>
      <text>Where is the Master Teacher of Spear?</text>
      <npc>
        <reply>
          <text>Go to Herkila Bearhunter, the troll. She lives west of here in the town of Verdigris.</text>
          <return>main</return> 
        </reply>
      </npc>
    </option>
    <option>
      <text>Goodbye!</text>
      <npc>
        <reply>
          <return>exit</return> 
        </reply>
      </npc>
    </option>
  </main> 
</dialogue>